package com.mvc.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @ProjectName: dior
 * @Package: com.mvc.entity
 * @ClassName: Spu
 * @Description: TODO
 * @Author: Bang
 * @Date: 2021/12/1 16:59
 * @Version: 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Spu {
    private Integer id;

    private String name;

    private String productName;

    private Integer category_three_id;

    private BigDecimal price;

    private String images;

    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date update_time;

    private List<Sku> skuList;
}
